package com.xuanxu.blogs.framework.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

import static com.xuanxu.blogs.framework.common.enums.HttpStatusEnum.MISS_REQUEST_PARAMETER;

/**
 *  请求参数缺失异常
 * @author XuanXu
 * @version 1.0
 * @date 2024-08-19 15:49
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class MissRequestParameterException extends BlogsBaseException {

    public MissRequestParameterException() {
        super(MISS_REQUEST_PARAMETER.getStatus(), MISS_REQUEST_PARAMETER.getMessage());
    }

    public MissRequestParameterException(Integer status, String message) {
        super(status, message);
    }
}
